package com.dtagri.fjwlw.base;

import com.google.gson.Gson;

/**
 * @author wxjn
 * 
 */
public class TGson {

	public static Gson gson = new Gson();

	/**
	 * JSON到Bean
	 * 
	 * @param class1
	 * @param arg2
	 * @return
	 */
	public static <T> T fromJson(Class<T> class1, byte[] arg2) {
		return gson.fromJson(new String(arg2), class1);
	}

}
